﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>零部件资源库</title>
    <style type="text/css">
        .linkSytle{text-decoration: none;}
        .tad{ margin-left:5px;}
        .div1{ margin-right:200px;}
        </style>
  </head>
  <body>
     <form id="Form1" runat="server">
     <div style="margin-left:auto;  margin-right:auto;width:960px; height:1000px; min-width:960px; overflow:hidden">
        <h3 style=" margin-left:1px">零部件资源库</h3>
        <div style=" margin-left:1px;padding-bottom:10px;">当前位置：<asp:SiteMapPath ID="SiteMapPath1" runat="server" CssClass="div1">
     </asp:SiteMapPath>零部件搜索:
     <telerik:RadTextBox ID="textBox_Search" runat="server" Width="250px"></telerik:RadTextBox>
     <asp:Button ID="button_Search" runat="server" Text="搜索" Width="50px" OnClick="button_Search_Click"   BackColor="White" />
     </div>
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
          <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
        </AjaxSettings>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="treeView_Vendor">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="treeView_Vendor" />
                    <telerik:AjaxUpdatedControl ControlID="listView_Families"  LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
            <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
        <table>
            <tr>
             
                <td valign="top" width="230px"><%--
                                    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" MultiPageID="RadMultiPage1"
                                        Width="230px"  OnTabClick="RadTabStrip1_TabClick"  Skin="Vista">
                                        <Tabs>
                                            <telerik:RadTab  Text="类别" CssClass="tad"  Width="115px">
                                            </telerik:RadTab>
                                            <telerik:RadTab  Text="供应商" Width="115px">
                                            </telerik:RadTab>
                                        </Tabs>
                                    </telerik:RadTabStrip>--%>
                                    <%--<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" >
                                        <telerik:RadPageView ID="RadPageView1" runat="server" Width="30px">
                                            <telerik:RadDockZone ID="rdzNavigator" runat="server" Height="600px" Width="230px" BorderStyle="None">
                                                <telerik:RadDock ID="rdSearchKey" runat="server" Height="600px" DefaultCommands="ExpandCollapse"
                                                    BorderStyle="None" CloseText="关闭" CollapseText="收起" ExpandText="展开" DockHandle="None"
                                                    Collapsed="false" Resizable="true" Pinned="true" EnableDrag="false">
                                                    <ContentTemplate>
                                                        <telerik:RadTreeView ID="treeView_Category"   runat="server" OnNodeClick="treeView_Category_AfterSelect" Skin="Vista">
                                                        </telerik:RadTreeView>
                                                    </ContentTemplate>
                                                </telerik:RadDock>
                                            </telerik:RadDockZone>
                                        </telerik:RadPageView>--%>
                                        <%--<telerik:RadPageView ID="RadPageView2" runat="server"  Width="30px">--%>
                                            <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="600px" Width="230px" BorderStyle="None">
                                                <telerik:RadDock ID="RadDock2" runat="server" Height="600px" DefaultCommands="ExpandCollapse"
                                                    BorderStyle="None" CloseText="关闭" CollapseText="收起" ExpandText="展开" DockHandle="None"
                                                    Collapsed="false" Resizable="true" Pinned="true" EnableDrag="false">
                                                    <ContentTemplate>
                                                        <telerik:RadTreeView ID="treeView_Vendor" runat="server" OnNodeClick="treeView_Vendor_AfterSelect" Skin="Vista">
                                                            <DataBindings>
                                                                <telerik:RadTreeNodeBinding TextField="Name" ImageUrl="../images/SAClient/favicon.ico" />
                                                            </DataBindings>
                                                        </telerik:RadTreeView>
                                                    </ContentTemplate>
                                                </telerik:RadDock>
                                            </telerik:RadDockZone>
                                     <%--   </telerik:RadPageView>
                                    </telerik:RadMultiPage>--%>
                               
                </td>
                <td valign="top" width="715px">
                <div style="text-align:left;" ><b>零件列表</b>
                        <asp:LinkButton ID="LinkButton1" runat="server" style=" margin-left:500px;" >加入零部件库</asp:LinkButton>
                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/imgs/defaultThumb.jpg"  Width="15px" Height="15px" AlternateText="帮助" />
                        <br /><hr  style=" margin-top:0px"/>
                                <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">
                                    <telerik:RadListView runat="server" ID="listView_Families" AllowPaging="true"   AllowSorting="true" OnNeedDataSource="listView_Families_NeedDataSource" 
                                        DataKeyNames="Id" OverrideDataSourceControlSorting="true"  ItemPlaceholderID="Panel1"  >
                                       <LayoutTemplate>
                                        <asp:Panel ID="Panel1" runat="server" />
                                            <table cellpadding="0" cellspacing="0" width="750px" style="clear: both;">
                                                <tr>
                                                    <td>
                                                        <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="listView_Families" 
                                                            PageSize="24">
                                                            <Fields>
                                                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                                                <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
                                                                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                                                <telerik:RadDataPagerPageSizeField PageSizeComboWidth="150" PageSizeText="Page size: "  />
                                                               <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                                                                    TextBoxWidth="5" />
                                                                <%--<telerik:RadDataPagerTemplatePageField>
                                                                    <PagerTemplate>
                                                                        <div style="float: right">
                                                                            <b>Items
                                                                                <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                                                                to
                                                                                <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>" />
                                                                                of
                                                                                <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                                                                <br />
                                                                            </b>
                                                                        </div>
                                                                    </PagerTemplate>
                                                                </telerik:RadDataPagerTemplatePageField>--%>
                                                            </Fields>
                                                        </telerik:RadDataPager>
                                                    </td>
                                                </tr>
                                            </table>
         
                                            
                                        </LayoutTemplate>
                                        <ItemTemplate>
                                            <div style="float: left; margin: 5px; padding: 2px; position: relative; background: write;"
                                                class="myClass" onmouseover="containerMouseover(this)" onmouseout="containerMouseout(this)">
                                                <telerik:RadBinaryImage Style="cursor: pointer; display: block;" runat="server" ID="RadBinaryImage1"
                                                    DataValue='<%#Eval("ImageByte") %>' Height='<%#ImageHeight %>' Width="<%#ImageWidth %>"
                                                    ResizeMode="Fit" onclick="<%#CreateWindowScript(Container.DataItem) %>" AlternateText="Click to view larger image"
                                                    ToolTip="Click to view larger image" />
                                                        <asp:LinkButton ID="Label1" runat="server" Text='<%#Bind("Name") %>'  Width="100px" Height="50px"
                                                         ForeColor="#1E8EFF" CssClass="linkSytle"  Font-Size="12px" OnClick="<%#CreateWindowScript( Container.DataItem) %>"></asp:LinkButton>

                                            </div>
                                              
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                            <div style="float: left; margin: 5px; padding: 2px; position: relative; background: write;"
                                                class="myClass" onmouseover="containerMouseover(this)" onmouseout="containerMouseout(this)">
                                                <telerik:RadBinaryImage Style="cursor: pointer; display: block;" runat="server" ID="RadBinaryImage1"
                                                    DataValue='<%#Eval("ImageByte") %>' Height='<%#ImageHeight %>' Width="<%#ImageWidth %>"
                                                    ResizeMode="Fit" onclick="<%#CreateWindowScript( Container.DataItem) %>" AlternateText="Click to view larger image"
                                                    ToolTip="Click to view larger image" />
                                            <asp:LinkButton ID="Label2" runat="server" Text='<%#Bind("Name") %>' Font-Size="12px" Width="100px" Height="50px" ForeColor="#1E8EFF" CssClass="linkSytle" OnClick="<%#CreateWindowScript( Container.DataItem) %>"></asp:LinkButton>
                                                
                                            </div>
                                        </AlternatingItemTemplate>
                                    </telerik:RadListView>
                                    </telerik:RadAjaxPanel>
                                    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" ></telerik:RadAjaxLoadingPanel>
                
                </div>
                </td>
            </tr>
        </table>
    
    </telerik:RadDockLayout>
    </div>
     </form>
  </body> 
  </html> 

 

